package com.fowo.api.model.report.receivable.detail;

import com.alibaba.excel.annotation.ExcelIgnore;
import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.format.DateTimeFormat;
import com.alibaba.excel.annotation.format.NumberFormat;
import com.alibaba.excel.annotation.write.style.ContentStyle;
import com.alibaba.excel.enums.poi.HorizontalAlignmentEnum;
import javax.validation.constraints.*;
import lombok.Getter;
import lombok.Setter;

/** 应收报告详情 导入导出辅助模型 */
@Getter
@Setter
public class ReportReceivableDetailExcelPo {

  @ExcelProperty(value = "所属应收报告")
  private Long parentReportReceivableSids;

  @ExcelIgnore
  @ExcelProperty(value = "所属应收报告")
  private Long parentReportReceivable;

  @DateTimeFormat("yyyy年MM月dd日")
  @ExcelProperty(value = "单据时间")
  private java.util.Date postedDateLocale;

  @Size(max = 50, message = "结算编号长度不能超过20")
  @ContentStyle(
    horizontalAlignment = HorizontalAlignmentEnum.LEFT,
    dataFormat = 49
  )
  @ExcelProperty(value = "结算编号")
  private String fid;

  @Size(max = 50, message = "MSKU长度不能超过20")
  @ContentStyle(
    horizontalAlignment = HorizontalAlignmentEnum.LEFT,
    dataFormat = 49
  )
  @ExcelProperty(value = "MSKU")
  private String sellerSku;

  @Size(max = 50, message = "SKU长度不能超过20")
  @ContentStyle(
    horizontalAlignment = HorizontalAlignmentEnum.LEFT,
    dataFormat = 49
  )
  @ExcelProperty(value = "SKU")
  private String localSku;

  @Size(max = 50, message = "品名长度不能超过20")
  @ContentStyle(
    horizontalAlignment = HorizontalAlignmentEnum.LEFT,
    dataFormat = 49
  )
  @ExcelProperty(value = "品名")
  private String localName;

  @Size(max = 50, message = "摘要长度不能超过20")
  @ContentStyle(
    horizontalAlignment = HorizontalAlignmentEnum.LEFT,
    dataFormat = 49
  )
  @ExcelProperty(value = "摘要")
  private String abstractName;

  @Size(max = 50, message = "本期增加长度不能超过20")
  @NumberFormat("0.00")
  @ExcelProperty(value = "本期增加")
  private java.math.BigDecimal increase;

  @Size(max = 50, message = "本期减少长度不能超过20")
  @NumberFormat("0.00")
  @ExcelProperty(value = "本期减少")
  private java.math.BigDecimal decrease;

  @Size(max = 50, message = "余额长度不能超过20")
  @NumberFormat("0.00")
  @ExcelProperty(value = "余额")
  private java.math.BigDecimal balance;

  @Size(max = 50, message = "settlement_id长度不能超过20")
  @ContentStyle(
    horizontalAlignment = HorizontalAlignmentEnum.LEFT,
    dataFormat = 49
  )
  @ExcelProperty(value = "settlement_id")
  private String settlementId;
}
